// import { FormProps, FormSchema } from '/@/components/Table';
import { BasicColumn } from '/@/components/Table/src/types/table';

export function getCols(): BasicColumn[] {
  return [
    {
      title: '报表名称',
      dataIndex: 'name',
      key: 'name',
    },
    {
      title: '报表类型',
      dataIndex: 'type',
      key: 'type',
    },
    {
      title: '报表模板',
      dataIndex: 'mould',
      key: 'mould',
    },
    {
      title: '项目名称',
      dataIndex: 'project',
      key: 'project',
    },
    {
      title: '报表时间',
      dataIndex: 'created_at',
      key: 'created_at',
    },
    {
      title: '操作',
      dataIndex: 'action',
      key: 'action',
    },
  ];
}

export function getRows() {

  return (() => {
    const arr: any = [];
    for (let index = 0; index < 40; index++) {
      arr.push({
        id: `${index}`,
        name: 'XX统计报表',
        type: '统计报表',
        mould: '周报',
        project: 'XX项目',
        created_at: '2022-12-31 11:23',
        action: '',
      });
    }
    return arr;
  })();
}

